package xddq

import (
	"crypto/md5"
	"fmt"
)

// error code
const (
	EcGroupNoNotExist     = -100
	EcDoorIDNotExist      = -101
	EcCardNoNotExist      = -102
	EcRecordIndexNotExist = -103
	EcAlarmIndexNotExist  = -104
)

//MD5 MD5
func MD5(src string) string {
	data := []byte(src)
	h := md5.Sum(data)
	return fmt.Sprintf("%x", h)
}
